public class AllUniqueChars {
  public boolean uniqueChars (String str) {
    char[] chars = str.toCharArray();
    HashMap<char, Integer> map = new HashMap<char, Integer>();
    for(char cha:chars) {
      if(!map.contains(cha))
        map.put(cha, 1);
      else return false;
      }
    return true;
  }
}